#ifndef OBSTACLE_INCLUDED
#define OBSTACLE_INCLUDED

#include "hitbox.h"
#include <vector>

class Obstacle
{
private:
	hitbox* Tab[10];
	point position;
	int id;

public:
	Obstacle();
	~Obstacle();

	bool operator()(int taillex,int tailley,int taillez);
	bool operator()(double rayon);
	bool Collision(hitbox& hit) const;
	bool Collision(Obstacle& ob) const;

	point Getposition();
	int Getid();
	hitbox& operator[](int i);
	Obstacle& Setid();
};

inline point Obstacle::Getposition() { return position; }
inline int Obstacle::Getid() { return id; }
inline hitbox& Obstacle::operator[](int i) { return *Tab[i]; }

#endif